package com.spring.demo12.eg2;

import org.springframework.context.ApplicationEvent;

/**
 * @author vhans
 */
public class OrderCreateEvent extends ApplicationEvent {

    private Long orderId;

    public OrderCreateEvent(Object source, Long orderId) {
        super(source);
        this.orderId = orderId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }
}
